package icu.sehnen.service;

import com.github.pagehelper.PageInfo;
import icu.sehnen.model.NewsModel;

public interface NewsService {
    PageInfo<NewsModel> findAll(Integer pageNum, Integer pageSize, String query);

    void add(NewsModel newsModel);

    void update(NewsModel newsModel);

    NewsModel find(Long id);

    void  delete(Long id);
}
